package com.cucn.eduorder.client;

import com.cucn.commonutils.ordervo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 课程远程调用接口
 *
 * @author KouChaoJie
 * @since: 2021/10/13 15:47
 */
@Component
@FeignClient("service-edu")
public interface EduClient {
    /**
     * 根据课程id查询课程信息
     *
     * @param id 课程id
     * @return 获取到的用于远程调用课程信息对象
     */
    @PostMapping("/eduservice/coursefront/getCourseInfoOrder/{id}")
    CourseWebVoOrder getCourseInfoOrder(@PathVariable("id") String id);
}
